package com.mt.fpb.model;

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "t_camera")
public class Camera {
    /**
     * 摄像头id
     */
    @KeySql(useGeneratedKeys = true)
    @Id
    @Column(name = "camera_id",insertable = false)
    private Integer cameraId;

    /**
     * 摄像头code
     */
    @Column(name = "camera_code")
    private String cameraCode;

    /**
     * 摄像头名称
     */
    @Column(name = "camera_name")
    private String cameraName;

    /**
     * 所属矿区
     */
    @Column(name = "mine_id")
    private Integer mineId;

    @Column(name = "mine_code")
    private String mineCode;

    /**
     * 摄像头所属区域
     */
    @Column(name = "area_type")
    private Integer areaType;

    /**
     * 添加时间
     */
    @Column(name = "insert_time")
    private Date insertTime;

    /**
     * 修改时间
     */
    @Column(name = "udpate_time")
    private Date udpateTime;

    public String getMineCode() {
        return mineCode;
    }

    public void setMineCode(String mineCode) {
        this.mineCode = mineCode;
    }

    /**
     * 获取摄像头id
     *
     * @return camera_id - 摄像头id
     */
    public Integer getCameraId() {
        return cameraId;
    }

    /**
     * 设置摄像头id
     *
     * @param cameraId 摄像头id
     */
    public void setCameraId(Integer cameraId) {
        this.cameraId = cameraId;
    }

    /**
     * 获取摄像头code
     *
     * @return camera_code - 摄像头code
     */
    public String getCameraCode() {
        return cameraCode;
    }

    /**
     * 设置摄像头code
     *
     * @param cameraCode 摄像头code
     */
    public void setCameraCode(String cameraCode) {
        this.cameraCode = cameraCode;
    }

    /**
     * 获取摄像头名称
     *
     * @return camera_name - 摄像头名称
     */
    public String getCameraName() {
        return cameraName;
    }

    /**
     * 设置摄像头名称
     *
     * @param cameraName 摄像头名称
     */
    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }

    /**
     * 获取所属矿区
     *
     * @return mine_id - 所属矿区
     */
    public Integer getMineId() {
        return mineId;
    }

    /**
     * 设置所属矿区
     *
     * @param mineId 所属矿区
     */
    public void setMineId(Integer mineId) {
        this.mineId = mineId;
    }

    /**
     * 获取摄像头所属区域
     *
     * @return area_type - 摄像头所属区域
     */
    public Integer getAreaType() {
        return areaType;
    }

    /**
     * 设置摄像头所属区域
     *
     * @param areaType 摄像头所属区域
     */
    public void setAreaType(Integer areaType) {
        this.areaType = areaType;
    }

    /**
     * 获取添加时间
     *
     * @return insert_time - 添加时间
     */
    public Date getInsertTime() {
        return insertTime;
    }

    /**
     * 设置添加时间
     *
     * @param insertTime 添加时间
     */
    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    /**
     * 获取修改时间
     *
     * @return udpate_time - 修改时间
     */
    public Date getUdpateTime() {
        return udpateTime;
    }

    /**
     * 设置修改时间
     *
     * @param udpateTime 修改时间
     */
    public void setUdpateTime(Date udpateTime) {
        this.udpateTime = udpateTime;
    }
}